<% layout('/layouts/default.html', {title: '', bodyClass: ''}){ %>
<!-- <link rel="stylesheet" href="${ctxStatic}/modules/sys/sysDesktop.css?${_version}"> -->
<div class="content pb0">
	<!-- Info boxes -->
	<div class="row">
		<div class="col-md-3 col-sm-6 col-xs-12">
			<a data-href="${ctx}/fl/appointment/listEvaluate?evaluateLevel=2&isEndPoorRating=0" id="openPoorRatings" href="javascript:">
			<div class="info-box">
				<span class="info-box-icon bg-aqua"><i class="fa fa-cog"></i></span>
				<div class="info-box-content">
					<span class="info-box-text">差评数</span>
					<span class="info-box-number lowLevelEvaluate"></span>
				</div>
				<!-- /.info-box-content -->
			</div>
			</a>
			<!-- /.info-box -->
		</div>
	</div>
</div>
<footer class="main-footer m0">
	<div class="pull-right hidden-xs">当前版本： ${@Global.getConfig('productVersion')}</div>
	&copy; ${@DateUtils.getYear()} ${@Global.getConfig('productName')}
</footer>
<% } %>
<script>
$(window).resize(function(){
	var footerHeight  = $('.main-footer').outerHeight() || 0;
	var windowHeight  = $(window).height();
	$('.content').css('min-height', windowHeight - footerHeight)
}).resize();

$.post("${ctx}/fl/appointment/lowLevelEvaluateCount",function(data){
    if(data) $(".lowLevelEvaluate").html(data);
});

$("#openPoorRatings").click(function(){
    var self=$(this);
    js.addTabPage(self, "差评列表", self.data("href"), true, true);
});
</script>